Deriving a textual notation from a metamodel: an experience on bridging Modelware and Grammarware
نویسندگان
چکیده
In this paper, we show how the OMG’s metamodelling approach to domain-specific language definition can be exploited to infer human-usable textual notations (concrete syntaxes) from the conceptualization provided by metamodels (abstract syntaxes). We give general rules to derive a context-free EBNF (Extended Backus-Naur Form) grammar from a MOF-compliant metamodel, and we show how to instruct a parser generator by these rules for generating a compiler which is able to parse the grammar and to transfer information about models into a MOF-based instance repository. The approach is exemplified for the Abstract State Machines Metamodel (AsmM), a metamodel for the Abstract State Machine (ASM) formal method, by illustrating the derivation of a textual notation to write ASM specifications conforming to the AsmM, and the process to input ASM models into a MOF repository.
منابع مشابه
Bridging Grammarware and Modelware
In Software Engineering many text-based languages and supporting tools are used, forming the grammarware technical space. Currently model driven engineering is the new emerging paradigm for software engineering, which uses modelling languages and tools, forming the modelware technical space. Transition to the new technical space and interoperability between these two technical spaces is needed ...
متن کاملGra2MoL: A domain specific transformation language for bridging grammarware to modelware in software modernization
Model-driven engineering (MDE) can be used both to create new software systems and to evolve or modernize existing software systems. In model-driven software evolution, models are extracted from the system and then MDE techniques are applied to make it evolve. Most evolution scenarios involve dealing with existing source code written in some programming languages. Therefore, a bridge from gramm...
متن کاملUsing Grammarware Languages to Define Operational Semantics of Modelled Languages
Abstract State Machines, Prolog, and Scheme are wellestablished for language engineering in the technological space of grammarware. In this paper, we show how they can be integrated into the technological space of modelware to describe operational semantics of modelled languages. Integration is based on three bridges: a physical, a logical, and a pragmatical bridge between grammarware language ...
متن کاملIntegrating Textual and Graphical Modelling Languages
Graphical diagrams are the main modelling constructs offered by the popular modelling language UML. Because textual representations of models also have their benefits, we investigated the integration of textual and graphical modelling languages, by comparing two approaches. One approach uses grammarware and the other uses modelware. As a case study, we implemented two versions of a textual alte...
متن کاملSecond International Workshop on Meta-Models and Schemas for Reverse Engineering
The International Workshops on Meta-Models and Schemas for Reverse Engineering aim at utilizing metatechnology for the development and use of reverse engineering toolsets. The focus of ateM 2004 is the integration of meta-technology of model driven engineering into reverse engineering. 1. Model Driven Engineering Model Driven Engineering (MDE) approaches are becoming increasingly popular. The M...
متن کامل